package com.hxs.hxsserver.mapper.device;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;import com.baomidou.mybatisplus.extension.plugins.pagination.Page;import com.hxs.hxsserver.domain.dto.device.DeviceDTO;
import com.hxs.hxsserver.domain.dto.device.DeviceListQueryDTO;
import com.hxs.hxsserver.domain.entity.device.Device;import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author liuchuan
 * @create 2024/9/26
 */
@Repository
public interface DeviceMapper extends BaseMapper<Device> {

    IPage<DeviceDTO> getDeviceListByUserId(@Param("page") Page<Device> page, @Param("deviceListQueryDTO")  DeviceListQueryDTO deviceListQueryDTO, @Param("layer") int layer,@Param("usersId")  List<Integer> usersId );
}